/**
 * 
 */
$(function postCoopList() {
	$
			.ajax({
				type : "post",
				url : "GetCoopListServlet",
				data : {projID:""},
				dateType : "json",
				success : function(data) {
					var jsondata = eval('(' + data + ')');
					var conDivNode = $("#page-projects");
					conDivNode.append("<div class=\"projects grid-view ui-sortable\"></div>");
					// 遍历~~
					$.each(jsondata.coop_project, function(n, value) {
						conDivNode.children()
						.append(
								"<a class=\"project c1 i13\" data-access-id=\"1933512\" title=\""+value.Name+"\""
										+ "href=\"../communication/coopindx.html?pro={pid:"+value.ID+"}\"data-stack=\"\"> <span class=\"badge\"><img src=\".."+value.Icon+"\"></span> "
										+ " <span class=\"name\">"+value.Name+"</span>"
										+ "<span class=\"desc\" title=\""+value.Desc+"\">"+value.Desc+"</span> "
										+ "</a>");
					});
					// 添加
					conDivNode
							.children()
							.append(
									"<a title=\"创建新项目\" class=\"project new\" href=\"../communication/addCoop.html\" data-stack=\"\""
											+ "data-nocache=\"\"> <span class=\"badge\"><img src=\"../images/add_mdole.png\" style=\"margin-top: 8px;\"/></span> <span"
											+ " class=\"name\">创建新项目</span></a>");

				},
				error : function() {
					// TODO do something
				}
			});
});